package framework.history;

import java.util.Date;

import framework.interfaces.ITransaction;


public class Transaction implements ITransaction {

	private String accNo;

	private Date date;

	private double debitAmount;

	private double creditAmount;

	public Transaction(String accNo, Date date, double debitAmount, double creditAmount) {
		this.accNo = accNo;
		this.date = date;
		this.debitAmount = debitAmount;
		this.creditAmount = creditAmount;
	}

	@Override
	public String getAccNo() {
		return accNo;
	}

	@Override
	public Date getDate() {
		return date;
	}

	@Override
	public double getDebitAmount() {
		return debitAmount;
	}

	@Override
	public double getCreditAmount() {
		return creditAmount;
	}
}
